package com.endoc.lib.kt

import com.endoc.lib.java.Client
import com.endoc.lib.java.cb.JavaCallback
import com.endoc.lib.java.cb.JavaManager
import com.endoc.lib.kt.cb.KTCallBack
import com.endoc.lib.kt.cb.KTManager

class Client {

    fun test() {
        println("ktTest")
    }


}

fun main(){
    Client().testJava()

    //KT调用kt
    KTManager().setCallback(object :KTCallBack{
        override fun show(name: String) {
            println("kt callBack")
        }
    })

    //kt调用java
    JavaManager().setCallback(JavaCallback(){
        print(it)
    })





}
